package threads;

public class ProducerConsumerTest
{
  public static void main(String[] args)
  {
    CubbyHole c = new CubbyHole();
    Producer p1 = new Producer(c, 1);
    Producer p2 = new Producer(c, 2);
    Producer p3 = new Producer(c, 3);
    Consumer c1 = new Consumer(c, 1);
    Consumer c2 = new Consumer(c, 2);
    Consumer c3 = new Consumer(c, 3);
    p1.start(); p2.start(); p3.start();
    c1.start(); c2.start(); c3.start();
  }
}
